<template>
  <div class="typeList">
    <div class="box" v-for="(item,i) in subCategory" :key="i">
      <img :src="item.image" alt="">
      <span>{{ item.title }}</span>
    </div>
  </div>
</template>

<script>
export default {
  name: 'TypeList',
  props: {
    subCategory: {
      type: Array,
      default () {
        return [];
      }
    }
  }
}
</script>

<style scoped>
.typeList {
  margin-left: 18px;
  /* margin-top: 60px; */
  display: flex;
  justify-content: space-between;
  flex-flow: wrap;
}
.box {
  display: inline-block;

  width: 75px;
  height: 120px;
  margin-top: 10px;
  text-align: center;
}
.box span {
  line-height: 40px;
  font-size: 12px;
}
</style>
